import 'package:json_annotation/json_annotation.dart';

part 'device_location.g.dart';

@JsonSerializable()
class DeviceLocation {
  String address;
  String poiName;
  String location;
  String coordType;
  double longitude;
  double latitude;


  DeviceLocation(this.address, this.poiName, this.location, this.coordType,
      this.longitude, this.latitude);

  factory DeviceLocation.fromJson(Map<String, dynamic> json) =>
      _$DeviceLocationFromJson(json);

  Map<String, dynamic> toJson() => _$DeviceLocationToJson(this);
}
